package com.example.msai.controller;

import com.example.msai.entity.DeepSeekRe;
import com.example.msai.service.MapUrlGeneratorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
public class GaoDeMapController {
    @Autowired
    private MapUrlGeneratorService MapUrlGeneratorService;

    @PostMapping("/DeepSeek/GaoDeMap")
    public String getGaoDeMap(@RequestBody DeepSeekRe deepSeekRe) throws IOException
    {
        return MapUrlGeneratorService.generateMapUrl(deepSeekRe);
    }
}
